package com.algorithm.cjm.test;

/**
 * Created by jieming.chen on 2020/1/28
 */
public class PrintPic {
    public static void main(String[] args) {
        int i, j, n = 10, k = 1;
        int[][] a = new int[100][100];
        for (i = 1; i <= n; i++) {
            for (j = 1; j <= n+1 - i; j++) {
                a[i - 1 + j][j] = k;
                k++;
            }
        }
        for (i = 1; i <= n; i++) {
            System.out.println();
            for (j = 1; j <= i; j++) {
                System.out.print(a[i][j] + " ");
            }
        }
    }
}
